<%form_tag do %>
	<% if flash[:notice] %>
	<div class="red flash">
    	<div class="start"></div>
        <div class="notice"><%= flash[:notice]%></div>
        <div class="end"></div>
        <div class="clear"></div>
    </div>
	<% end %>
	<%= error_messages_for 'user' %>
	<table class="form" cellpadding="0px" cellspacing="0px">
		<tr>
        	<th colspan="2">Please log in.<span class="other">All fields required.</span></th>
        </tr>
	    <tr>
            <td class="labels">
	            <label for="login">
	                Login Name
	            </label>
	        </td>
            <td class="fields">
	            <%=text_field_tag :user_login, params[:user_login], :class => 'normal_input_width' %>
	        </td>
	    </tr>
	    <tr>
            <td class="labels">
	            <label for="password">
	                Password
	            </label>
	        </td>
	        <td class="fields">
	            <%=password_field_tag :user_password, params[:user_password], :class => 'normal_input_width' %>
	        </td>
	    </tr>
	    <tr>
	        <td>
	        </td>
	        <td>
	            <%= link_to 'Fotget password?', :controller => 'password', :action => 'fotget'%>
	        </td>
	    </tr>
		<tr>
	        <td class="labels">
	            <label for="captcha">
	            	CAPTCHA
	            </label>
	        </td>
	        <td class="fields">
	            <%=get_captcha(:options => {:theme => 'gray'}) %>
	        </td>
	    </tr>
	    <tr class="button_area">
	        <td colspan="2">
	            <%=submit_tag ' Sign In ', :disable_with => 'Signing In ...', :class => 'submit' %> or <%= link_to "Sign Up", signup_url %>
	        </td>
	    </tr>
	</table>
<%end %>

